<div id="authorization" class="global-popup">
    <div class="global-popup__description">
        <div class="global-popup__description__inner">
            <span class="global-popup__close">
                <span>Закрыть</span>
            </span>
            <h2 class="global-small-title">Авторизация</h2>            
            <?php
            $form = $this->beginWidget('CActiveForm', array(
                'id' => 'login-form',
                'action' => '/main/login',
                'enableAjaxValidation' => true,
                'clientOptions' => array(
                    'validateOnSubmit' => true,
                ),
            ));
            ?>
            <div style="display: none">
                <?php echo $form->error($model, 'username'); ?>
                <?php echo $form->error($model, 'password'); ?>
                <?php echo $form->error($model, 'rememberMe'); ?>
            </div>
            <fieldset>
                <label for="login">Логин</label>
                <div class="type-text">
                    <?php echo $form->textField($model, 'username'); ?>                    
                </div>  
            </fieldset>
            <fieldset>
                <label for="password">Пароль</label>
                <div class="type-text">
                    <?php echo $form->passwordField($model, 'password'); ?>
                </div>  
            </fieldset>
            <fieldset>
                <label for="password">Запомнить меня</label>
                <?php echo $form->checkBox($model, 'rememberMe'); ?>
            </fieldset>
            <fieldset>
                <input class="type-submit-bt" type="submit" value="Войти" />
            </fieldset>
            <?php $this->endWidget(); ?>
        </div>  
    </div>
    <div class="global-popup__popup-overlay">&nbsp;</div>
</div>